package com.spring.MyBatis.service;

import com.spring.MyBatis.dao.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CityService {

    @Autowired
    CityMapper cityMapper;  //自动装配

    public void queryAll(){
        System.out.println(cityMapper);
        System.out.println(cityMapper.query());
    }

}
